package com.ruoyi.vote.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.vote.admin.domain.VotePrizeReceive;
import com.ruoyi.vote.admin.domain.vo.VotePrizeReceiveVo;
import com.ruoyi.vote.admin.domain.bo.VotePrizeReceiveBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 奖品申领Service接口
 *
 * @author 筑巢
 * @date 2023-07-17
 */
public interface IVotePrizeReceiveService extends IService<VotePrizeReceive> {

    /**
     * 查询奖品申领
     */
    VotePrizeReceiveVo queryById(Long id);

    /**
     * 查询奖品申领列表
     */
    TableDataInfo<VotePrizeReceiveVo> queryPageList(VotePrizeReceiveBo bo, PageQuery pageQuery);

    /**
     * 查询奖品申领列表
     */
    List<VotePrizeReceiveVo> queryList(VotePrizeReceiveBo bo);

    /**
     * 新增奖品申领
     */
    Boolean insertByBo(VotePrizeReceiveBo bo);

    /**
     * 修改奖品申领
     */
    Boolean updateByBo(VotePrizeReceiveBo bo);

    /**
     * 校验并批量删除奖品申领信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 奖品发货给 / 订阅通知
     * @param id  奖品表ID
     */
    Boolean prizeExamine(Long id);
}
